#-------------------------------------------------
#
# Project created by QtCreator 2013-08-09T10:25:50
#
#-------------------------------------------------

QT       += core gui sql network webkit
LIBS += -llibeay32 -lssleay32 -lws2_32

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Memorizer
TEMPLATE = app

TRANSLATIONS += Memorizer.ts


SOURCES += main.cpp\
        MainWindow.cpp \
    DataBaseAgent.cpp \
    Note.cpp \
    ComboView.cpp \
    ListView.cpp \
    TableView.cpp \
    SettingsWidget.cpp \
    DataProvider.cpp \
    SelectPassDialog.cpp \
    NoteAddDialog.cpp \
    CryptoAgent.cpp \
    ChangePassDialog.cpp \
    md5.cpp \
    CSmtp.cpp \
    base64.cpp \
    SendMailDialog.cpp \
    AboutDialog.cpp \
    external/oaes_lib.c \
    external/Rijndael.cpp \
    crypt/CryptDES.cpp \
    crypt/CryptAES.cpp \
    crypt/CryptRC4.cpp

HEADERS  += MainWindow.h \
    DataBaseAgent.h \
    Note.h \
    ComboView.h \
    ListView.h \
    TableView.h \
    INoteView.h \
    SettingsWidget.h \
    DataProvider.h \
    SelectPassDialog.h \
    NoteAddDialog.h \
    CryptoAgent.h \
    ChangePassDialog.h \
    md5.h \
    CSmtp.h \
    base64.h \
    SendMailDialog.h \
    AboutDialog.h \
    external/oaes_lib.h \
    external/oaes_config.h \
    external/Rijndael.h \
    crypt/ICrypt.h \
    crypt/CryptDES.h \
    crypt/CryptAES.h \
    crypt/CryptRC4.h

FORMS    += MainWindow.ui \
    ComboView.ui \
    ListView.ui \
    TableView.ui \
    SettingsWidget.ui \
    SelectPassDialog.ui \
    NoteAddDialog.ui \
    ChangePassDialog.ui \
    SendMailDialog.ui \
    AboutDialog.ui

RESOURCES += \
	resources.qrc

win32:RC_FILE = Memorizer.rc


VERSION = 1.1

# Define the preprocessor macro to get the application version in our application.
DEFINES += APP_VERSION=\\\"$$VERSION\\\"

win32 {
DEFINES += BUILDTIME=\\\"$$system('echo %time:~0,8%')\\\"
DEFINES += BUILDDATE=\\\"$$system('echo %date%')\\\"
} else {
DEFINES += BUILDTIME=\\\"$$system(date '+%H:%M:%s')\\\"
DEFINES += BUILDDATE=\\\"$$system(date '+%d/%m/%y')\\\"
}
